package com.wicket.okrapp.web.contorller;

import com.wicket.okrapp.biz.service.AchievementDockService;
import com.wicket.okrapp.biz.service.dto.req.*;
import com.wicket.okrapp.biz.service.dto.res.*;
import com.wicket.okrapp.common.ro.OkrResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@RestController
@RequestMapping("/app/achievementDock/")
public class AchievementDockController {

  @Autowired
  AchievementDockService achievementDockService;
/**
   * D3查询成果对接关系列表(公共)
   */
    @PostMapping("queryAchievementDockListCom")
    public OkrResult<QueryAchievementDockListComRespDto> queryAchievementDockListCom(@RequestBody @Validated QueryAchievementDockListComReqDto reqDTO){
    return OkrResult.success(achievementDockService.queryAchievementDockListCom(reqDTO));
    }
/**
   * D3查询可对接成果列表(公共)
   */
    @PostMapping("queryAllowDockAchievementListCom")
    public OkrResult<QueryAllowDockAchievementListComRespDto> queryAllowDockAchievementListCom(@RequestBody @Validated QueryAllowDockAchievementListComReqDto reqDTO){
    return OkrResult.success(achievementDockService.queryAllowDockAchievementListCom(reqDTO));
    }
/**
   * D3分析内容业绩责任部门(公共)
   */
    @PostMapping("analysisContDutyDeptCom")
    public OkrResult<AnalysisContDutyDeptComRespDto> analysisContDutyDeptCom(@RequestBody @Validated AnalysisContDutyDeptComReqDto reqDTO){
    return OkrResult.success(achievementDockService.analysisContDutyDeptCom(reqDTO));
    }
/**
   * D3查询指标扩展设置详情(公共)
   */
    @PostMapping("queryObjtiveExtSetDetailCom")
    public OkrResult<QueryObjtiveExtSetDetailComRespDto> queryObjtiveExtSetDetailCom(@RequestBody @Validated QueryObjtiveExtSetDetailComReqDto reqDTO){
    return OkrResult.success(achievementDockService.queryObjtiveExtSetDetailCom(reqDTO));
    }
/**
   * D3查询目标内容部门小圈子详情(公共)
   */
    @PostMapping("queryTargetContDeptSmallCircleDetailCom")
    public OkrResult<QueryTargetContDeptSmallCircleDetailComRespDto> queryTargetContDeptSmallCircleDetailCom(@RequestBody @Validated QueryTargetContDeptSmallCircleDetailComReqDto reqDTO){
    return OkrResult.success(achievementDockService.queryTargetContDeptSmallCircleDetailCom(reqDTO));
    }
/**
   * D3查询目标内容成员小圈子详情(公共)
   */
    @PostMapping("queryTargetContMemberSmallCircleDetailCom")
    public OkrResult<QueryTargetContMemberSmallCircleDetailComRespDto> queryTargetContMemberSmallCircleDetailCom(@RequestBody @Validated QueryTargetContMemberSmallCircleDetailComReqDto reqDTO){
    return OkrResult.success(achievementDockService.queryTargetContMemberSmallCircleDetailCom(reqDTO));
    }
/**
   * D3批量查询成果By授予及有效时间(公共)
   */
    @PostMapping("batchQueryAchievementByAwardedEndTimeCom")
    public OkrResult<BatchQueryAchievementByAwardedEndTimeComRespDto> batchQueryAchievementByAwardedEndTimeCom(@RequestBody @Validated BatchQueryAchievementByAwardedEndTimeComReqDto reqDTO){
    return OkrResult.success(achievementDockService.batchQueryAchievementByAwardedEndTimeCom(reqDTO));
    }
/**
   * D3统计成果数(公共)
   */
    @PostMapping("statisticsAchievementNumCom")
    public OkrResult<StatisticsAchievementNumComRespDto> statisticsAchievementNumCom(@RequestBody @Validated StatisticsAchievementNumComReqDto reqDTO){
    return OkrResult.success(achievementDockService.statisticsAchievementNumCom(reqDTO));
    }
/**
   * D3按成果类型或成果等级查询成果数列表(去重)
   */
    @PostMapping("queryAchievementByTypeOrGraceListCom")
    public OkrResult<QueryAchievementByTypeOrGraceListComRespDto> queryAchievementByTypeOrGraceListCom(@RequestBody @Validated QueryAchievementByTypeOrGraceListComReqDto reqDTO){
    return OkrResult.success(achievementDockService.queryAchievementByTypeOrGraceListCom(reqDTO));
    }
/**
   * D3批量查询对接成果列表By子周期周期ID(公共)
   */
    @PostMapping("batchQueryDockAchievementListBySubCycleCom")
    public OkrResult<BatchQueryDockAchievementListBySubCycleComRespDto> batchQueryDockAchievementListBySubCycleCom(@RequestBody @Validated BatchQueryDockAchievementListBySubCycleComReqDto reqDTO){
    return OkrResult.success(achievementDockService.batchQueryDockAchievementListBySubCycleCom(reqDTO));
    }
/**
   * D3批量统计成果数(公共)
   */
    @PostMapping("batchStatisticsAchievementNumCom")
    public OkrResult<BatchStatisticsAchievementNumComRespDto> batchStatisticsAchievementNumCom(@RequestBody @Validated BatchStatisticsAchievementNumComReqDto reqDTO){
    return OkrResult.success(achievementDockService.batchStatisticsAchievementNumCom(reqDTO));
    }
/**
   * D3批量统计成果数By所属主体(公共)
   */
    @PostMapping("batchStatisticsAchievementNumByBelongBodyCom")
    public OkrResult<BatchStatisticsAchievementNumByBelongBodyComRespDto> batchStatisticsAchievementNumByBelongBodyCom(@RequestBody @Validated BatchStatisticsAchievementNumByBelongBodyComReqDto reqDTO){
    return OkrResult.success(achievementDockService.batchStatisticsAchievementNumByBelongBodyCom(reqDTO));
    }
/**
   * D3批量查询对接成果关系By所属主体(公共)
   */
    @PostMapping("batchQueryAchievementDockByBelongBodyCom")
    public OkrResult<BatchQueryAchievementDockByBelongBodyComRespDto> batchQueryAchievementDockByBelongBodyCom(@RequestBody @Validated BatchQueryAchievementDockByBelongBodyComReqDto reqDTO){
    return OkrResult.success(achievementDockService.batchQueryAchievementDockByBelongBodyCom(reqDTO));
    }
/**
   * D3批量查询对接成果关系By评价画像根节点(公共)
   */
    @PostMapping("batchQueryAchDockByEvaPortraitSubRootCom")
    public OkrResult<BatchQueryAchDockByEvaPortraitSubRootComRespDto> batchQueryAchDockByEvaPortraitSubRootCom(@RequestBody @Validated BatchQueryAchDockByEvaPortraitSubRootComReqDto reqDTO){
    return OkrResult.success(achievementDockService.batchQueryAchDockByEvaPortraitSubRootCom(reqDTO));
    }
/**
   * D3分析评价画像根节点ID(公共)
   */
    @PostMapping("analysisEvaPortraitRootIdCom")
    public OkrResult<AnalysisEvaPortraitRootIdComRespDto> analysisEvaPortraitRootIdCom(@RequestBody @Validated AnalysisEvaPortraitRootIdComReqDto reqDTO){
    return OkrResult.success(achievementDockService.analysisEvaPortraitRootIdCom(reqDTO));
    }
/**
   * D3批量统计成果数By评价画像根节点(公共)
   */
    @PostMapping("batchStatisticsAchNumByEvaPortraitSubRootCom")
    public OkrResult<BatchStatisticsAchNumByEvaPortraitSubRootComRespDto> batchStatisticsAchNumByEvaPortraitSubRootCom(@RequestBody @Validated BatchStatisticsAchNumByEvaPortraitSubRootComReqDto reqDTO){
    return OkrResult.success(achievementDockService.batchStatisticsAchNumByEvaPortraitSubRootCom(reqDTO));
    }
/**
   * D3分析成果所属主体及类型(公共)
   */
    @PostMapping("analysisAchBelongBodyAndTypeCom")
    public OkrResult<AnalysisAchBelongBodyAndTypeComRespDto> analysisAchBelongBodyAndTypeCom(@RequestBody @Validated AnalysisAchBelongBodyAndTypeComReqDto reqDTO){
    return OkrResult.success(achievementDockService.analysisAchBelongBodyAndTypeCom(reqDTO));
    }
/**
   * D3查询成果对接目标汇报任务列表(公共)
   */
    @PostMapping("queryAchiveDockTargetReportTaskListCom")
    public OkrResult<QueryAchiveDockTargetReportTaskListComRespDto> queryAchiveDockTargetReportTaskListCom(@RequestBody @Validated QueryAchiveDockTargetReportTaskListComReqDto reqDTO){
    return OkrResult.success(achievementDockService.queryAchiveDockTargetReportTaskListCom(reqDTO));
    }
/**
   * D3批量查询成果对接by创建人(公共)
   */
    @PostMapping("batchQueryAchievementDockByCreateInductionIdCom")
    public OkrResult<BatchQueryAchievementDockByCreateInductionIdComRespDto> batchQueryAchievementDockByCreateInductionIdCom(@RequestBody @Validated BatchQueryAchievementDockByCreateInductionIdComReqDto reqDTO){
    return OkrResult.success(achievementDockService.batchQueryAchievementDockByCreateInductionIdCom(reqDTO));
    }
}
